// my.js
const request = require('./config/request')
const {
  GPTSHIXIANJIA,
  BASEAPIAIIIIN
} = require('./config/config')

module.exports = {
  // 获取模型广场
  getModelPlaza(data) {
    let url = GPTSHIXIANJIA + '/api/app/ai-model-data/get-model-square-list'
    return request.post({
      url,
      data
    })
  },
  // 获取模型名人堂
  getModelHOF(data) {
    let url = GPTSHIXIANJIA + '/api/app/ai-model-data/get-hall-of-fame-list'
    return request.post({
      url,
      data
    })
  },
  // 获取模型详情
  getModelDetail(data) {
    let url = GPTSHIXIANJIA + '/api/app/ai-model-data/get-by-id'
    return request.post({
      url,
      data
    })
  },
  // 关注作者
  addfollow(data){
    let url = BASEAPIAIIIIN + '/app/myfollow/addfollow'
    return request.post({
      url,
      data
    })
  },
  // 取消关注作者
  removefollow(data){
    let url = BASEAPIAIIIIN + '/app/myfollow/removefollow'
    return request.post({
      url,
      data
    })
  },
  // 判断当前用户是否关注了作者
  isfollowtouser(data){
    let url = BASEAPIAIIIIN + '/app/myfollow/isfollowtouser'
    return request.post({
      url,
      data
    })
  },
}